package cn.itcast.bos.Dao.base;

import cn.itcast.bos.domain.base.Courier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;


/**
 * Created by Administrator on 2017/7/21.
 */

public interface CourierDao extends JpaRepository<Courier,Integer> ,JpaSpecificationExecutor<Courier>{
    //自定义作废快递员的方法
    @Query("update Courier set deltag='1' where id=?")
    @Modifying
    void delTag(Integer id);
}
